<?php
class IndexAction extends Action
{
    function index()
	{
		$root = rootpath();
		$this->assign("root",$root);
        $this->assign("history",S("history"));
		$this->assign("pageFile","Index:index");
		$this->layout();
    }

    function changeRoot()
    {
        S("root",str_replace("\\","/",$_POST["RootDir"]));
        $this->success("更新web根目录成功");
    }
}
?>